<!DOCTYPE HTML>
<html>
<head>
    <title>test</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
    <link rel="stylesheet" type="text/css" href="../css/common.css"/>
    <link rel="stylesheet" type="text/css" href="../css/flex_ysy.css"/>
    <link rel="stylesheet" type="text/css" href="../scripts/vendor/easyui/easyui.css"/>
</head>
<body>
<div class="table-responsive">
    <table class="table table-bordered" id="dg">
    </table>
</div>

<script type="text/javascript" src="../scripts/vendor/jquery-3.4.1/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../scripts/vendor/jquery-cookie-1.4.1/jquery.cookie.min.js"></script>
<script type="text/javascript" src="../scripts/vendor/jquery-easing/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="../scripts/service/common-method.js"></script>
<script type="text/javascript" src="../scripts/service/common-utils.js"></script>
<script type="text/javascript" src="../scripts/service/string-utils.js"></script>
<script type="text/javascript" src="../scripts/service/number-utils.js"></script>
<script type="text/javascript" src="../scripts/service/date-utils.js"></script>
<script type="text/javascript" src="../scripts/vendor/easyui/jquery.easyui.min.js"></script>
<script>
    $('#dg').datagrid({
        columns: [[
            {field: 'code', title: 'Code', width: 100, colspan: 1, rowspan: 2},
            {field: 'name', title: 'Name', width: 100, colspan: 2, rowspan: 1},
            {field: 'price', title: 'Price', width: 100, align: 'right', colspan: 1, rowspan: 2}
        ], [
            {
                field: 'A', title: '', width: 100, colspan: 1, rowspan: 1, styler: function () {
                    return "";
                }
            },
            {field: 'B', title: '', width: 100, colspan: 1, rowspan: 1},
        ]]
    });

    let list = {
        "total": 2,
        "rows": [{id: 0, code: "001", A: "哈哈", B: "heihie", price: "15"},
            {id: 0, code: "002", A: "哈哈", B: "heihie", price: "35"},
        ]
    };

    $('#dg').datagrid("loadData", list);
</script>
</body>

</html>
